<div class="column prepend-1 span-5 append-1">
  <h4 class="actions">My Disciplines</h4>
  <ul class="actions">
    <% if logged_in? %>
      <% if current_user.disciplines.empty? %>
        <p class="action">You are not a member of any disciplines.</p>
      <% end %>
      <% if current_user.disciplines.count > 0 %>
        <% current_user.disciplines.each do |discipline| %>
          <%= link_to_action discipline.name, discipline_path(discipline) %>
        <% end %>
      <% end %>
      <% if params[:id] %>
        <%= link_to_action "Create a new discipline &#187;", new_discipline_path(:college_id => params[:id]), :class => 'big-link' %>
      <% else %>
        <%= link_to_action "Create a new discipline &#187;", new_discipline_path, :class => 'big-link' %>
      <% end %>
    <% else %>
      <p class="actions">If you <%= link_to 'create an account', signup_url %> or <%= link_to 'login', login_url %> you'll be able to <strong>join disciplines</strong>, or even create new ones!</p>
    <% end %>
  </ul>
</div>
